package top.boycharse.factory.presenter;

import androidx.annotation.StringRes;

public class BaseContract {
    public interface View<T extends Presenter> {

        // 显示一个字符串
        void showError(@StringRes int str);

        // 显示进度条
        void showLoading();

        // 支持设置一个Presenter
        void setPresenter(T presenter);
    }

    public interface Presenter{

        void start();

        void destroy();
    }
}
